Skip to content

fix: remove Git CLI dependency and hide Windows command windows - #1800

Merged
wsp1911 merged 2 commits into
GCWing:mainfrom
wsp1911:fix/popup-window
Jul 27, 2026
Merged

fix: remove Git CLI dependency and hide Windows command windows#1800
wsp1911 merged 2 commits into
GCWing:mainfrom
wsp1911:fix/popup-window

Conversation

@wsp1911

@wsp1911 wsp1911 commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Replace workspace-memory Git CLI calls with vendored libgit2.
  • Preserve ignored ad-hoc notes in Phase 2 memory diffs.
  • Prevent Windows console windows from flashing for MiniApp workers, native hooks, local workspace shell commands, and local Docker workspace processes.

Fixes #1749

Type and Areas

Type:

Bug fix / regression fix

Areas:

Rust core, services, agent runtime, desktop MiniApp runtime, Remote SSH

Motivation / Impact

Memory no longer requires a system Git installation to build workspace baselines or diffs. Ignored ad-hoc notes continue to participate in memory capture.

Windows release builds now create the affected background child processes with hidden console windows, including long-lived local Docker docker exec stdio sessions.

Verification

  • pnpm run fmt:rs
  • node --check src/apps/desktop/resources/worker_host.js
  • cargo test -p bitfun-services-core --features workspace-runtime workspace
  • cargo test -p bitfun-services-integrations --features remote-ssh-concrete (49 passed; 1 Docker-dependent test ignored)
  • cargo check -p bitfun-services-integrations --features remote-ssh-concrete
  • cargo check --workspace

Reviewer Notes

  • The memory implementation uses vendored libgit2 and retains legacy diff rendering behavior.
  • The ignored-note regression is covered by memory_workspace_diff_includes_ignored_ad_hoc_notes.
  • No interactive verification was run. The Docker integration test remains opt-in via BITFUN_TEST_DOCKER_CONTAINER.

Checklist

  • This PR is focused and does not include secrets, temporary prompts, generated scratch files, or unrelated artifacts.
  • Relevant verification is recorded above.
  • User-facing strings, docs, and locales are not affected.

- remove the runtime dependency on the system Git executable
- build memory baselines and diffs through vendored libgit2
- preserve ignored ad-hoc notes in Phase 2 workspace diffs
- add regression coverage for ignored memory notes
@wsp1911
wsp1911 marked this pull request as ready for review July 27, 2026 10:40
- Hide MiniApp worker command windows on Windows.
- Apply CREATE_NO_WINDOW to native hook execution.
- Route local workspace shell and Docker workspace processes through the shared hidden-window command factory.
- Cover local Docker probes, signals, and long-lived stdio transport execution.
@wsp1911
wsp1911 force-pushed the fix/popup-window branch from 82f8192 to f3db631 Compare July 27, 2026 10:49
@wsp1911
wsp1911 merged commit 6acbde9 into GCWing:main Jul 27, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: 后台每次执行命令都会弹出 Windows Terminal 窗口(conhost + powershell)

1 participant